<div id="alerts">
    {% for item in items %}
    <div class="item">
        <span class="item_date">{{item.date}}</span>
        <span class="item_type">{{item.type}}</span>
        <span class="item_message">{{item.message}}</span>
    </div>
    {% endfor %}
</div>